<template>
  <div class="request-status">
    <Success v-if="requestStatus" />
    <Fail
      v-else
      @reauthorization="reauthorization"
    />
  </div>
</template>

<script>
import Success from './Success.vue';
import Fail from './Fail.vue';

export default {
  components: {
    Success,
    Fail
  },

  props: {
    requestStatus: {
      type: Boolean,
      default: () => true
    }
  },

  methods: {
    reauthorization() {
      this.$emit('reauthorization');
    }
  }
};

</script>
